import os
DEBUG=True
SECRET_KEY=os.urandom(24)
DIALECT='mysql'
DRIVER='mysqldb'
USERNAME='root'
PASSWORD='998219'
HOST='127.0.0.1'
PORT='3306'
DATABASE='recipe'

SQLALCHEMY_DATABASE_URI="{}+{}://{}:{}@{}:{}/{}?charset=utf8".format(DIALECT,DRIVER,USERNAME,PASSWORD,HOST,PORT,DATABASE)
SQLALCHEMY_TRACK_MODIFICATIONS=True

WHOOSHEE_MIN_STRING_LEN=1

MAIL_SERVER='smtp.qq.com'
MAIL_PORT=587
MAIL_USE_TLS=True
MAIL_USERNAME='XXX@qq.com'
MAIL_PASSWORD='XXX'
MAIL_DEFAULT_SENDER=('XXX','XXX')

DEBUG_TB_INTERCEPT_REDIRECTS=False

class Operations:
    CONFIRM='confirm'
    RESET_PASSWORD='reset-password'
    CHANGE_EMAIL='change-email'
